package com.nobug.mapper.brandMapper;

import com.nobug.bean.brand.Brand;
import com.nobug.bean.brand.BrandExample;
import com.nobug.bean.brand.VO.BrandCreateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    long countByExample(BrandExample example);

    int deleteByExample(BrandExample example);

    Integer deleteByPrimaryKey(Integer id);

    int insert(Brand record);

    Integer insertSelective(@Param("record") Brand record);

    List<Brand> selectByExample(BrandExample example);

    BrandCreateVO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Brand record, @Param("example") BrandExample example);

    int updateByExample(@Param("record") Brand record, @Param("example") BrandExample example);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> selectListByIdOrName(@Param("offset") Integer offset, @Param("limit") Integer limit,
                                     @Param("sort") String sort, @Param("order") String order,
                                     @Param("id") Integer id, @Param("name") String name);
}